#ifndef __AT_COMMAND_H
#define __AT_COMMAND_H	 
#include "sys.h"

enum 
{ 
   wait_timeout =-2,
   failure,
   successful     
};

//int esp8266_TCPClient_init(int timeout);
int esp8266_send_AT_command(unsigned char *buf, char *resp, int resp_len,int timeout);
int esp8266_send_data(unsigned char *buf,int len,int timeout);
int data_head_analysis(unsigned char * buf);	
int data_len_analysis(unsigned char *buf);
int GetCIPSENDResult(void);
int ATReadData(unsigned char *c, int timeout);

#endif
